﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

/// <summary>
/// Summary description for BrandViewer
/// </summary>
public class BrandViewer
{
    public static string View()
    {
        CBrandFacade facade = new CBrandFacade();
        StringBuilder str = new StringBuilder();

        IList<Brand> list = facade.List(1, 100, 0);
        foreach (Brand item in list)
        {
            str.AppendFormat(_format, item.BrandLogo, item.BrandName, item.BrandId);
        }
        return str.ToString();
    }
    //../Img/Layout/brandlogo.jpg
    static string _format = @"<div class='item'>
        <!--<div class='logo'>
            <div class='image'>
                <img src='{0}' width='37' height='21' />
            </div>
        </div>-->
        <div class='name'>
            <label>
                <a href='../Pages/NewProducts.aspx?bi={2}'>> {1}</a></label>
        </div>
    </div>";
}